<%--
  Created by IntelliJ IDEA.
  User: ausu
  Date: 2019/10/15
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
    <script src="js/jquery-3.4.1.min.js"></script>
    <style>
        header {
            position: relative;
            width: 100%;
            margin-top: 2px;
        }

        header ul li:first-child {
            margin-left: 15px;
        }

        article {
            position: relative;
            width: 98%;
            min-width: 900px;
            margin: 50px auto 0px;
        }

        input, select {
            font-weight: bold;
            font-size: 20px;
        }
    </style>
</head>

<body>
<header>
    <ul class="nav nav-tabs">
        <li role="presentation" class="active">
            <a href="javascript:void(0);" onclick="history.back();">添加员工</a>
        </li>
    </ul>
</header>
<article>
    <form class="form-horizontal" role="form" method="post" action="employeeAdd.html?pageNum=${num}">
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">姓&emsp;&emsp;名：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="employeeName" required autofocus>
            </div>
            <label for="firstname" class="col-sm-1 control-label">银行卡号：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="bankcardNumber" required>
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">性&emsp;&emsp;别：</label>
            <div class="col-sm-3">
                <select name="employeeGender" class="form-control" required>
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
            <label for="firstname" class="col-sm-1 control-label">职&emsp;&emsp;位：</label>
            <div class="col-sm-3">
                <select name="position.positionId" class="form-control">
                    <c:forEach items="${positionList}" var="position">
                        <option value="${position.positionId}">${position.positionName}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">身份证号：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="idNumber" required>
            </div>
            <label for="firstname" class="col-sm-1 control-label">邮&emsp;&emsp;箱：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="mailbox" required>
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">手&emsp;&emsp;机：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="tel" required>
            </div>
            <label for="firstname" class="col-sm-1 control-label">入职日期：</label>
            <div class="col-sm-3">
                <input type="date" class="form-control" name="entryTime" required>
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">所属部门：</label>
            <div class="col-sm-3">
                <select name="department.departmentId" class="form-control">
                    <c:forEach items="${departmentList}" var="department">
                        <option value="${department.departmentId}">${department.departmentName}</option>
                    </c:forEach>
                </select>
            </div>
            <label for="firstname" class="col-sm-1 control-label">居住地址：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="address" required>
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-1 control-label">学&emsp;&emsp;历：</label>
            <div class="col-sm-3">
                <select name="education" class="form-control">
                    <option value="初中">初中</option>
                    <option value="高中">高中</option>
                    <option value="大专">大专</option>
                    <option value="本科">本科</option>
                    <option value="研究生">研究生</option>
                    <option value="博士">博士</option>
                    <option value="硕士">硕士</option>
                </select>
            </div>
            <label for="firstname" class="col-sm-1 control-label">薪&emsp;&emsp;水：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" name="salary" required>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-1 col-sm-1">
                <button type="submit" class="btn btn-success">添 加</button>
            </div>
            <div class="col-sm-offset-1 col-sm-1">
                <button type="reset" class="btn btn-success">取 消</button>
            </div>
        </div>
    </form>
</article>
</body>

</html>
